﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Manage/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<RuiJing.Web.Areas.Manage.Models.ProductModels.PictureTypeEditModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%="edit" == Model.Model ? "编辑" : "新增" %>分类
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div>
<% Html.BeginForm("editpictype", "product", new { id = Model.Model }); %>
    <fieldset class="editset">
        <legend><%="edit" == Model.Model ? "编辑" : "新增" %>分类</legend>
        <%=Html.ActionLink("返回>>", "pictype", null , new { @class="a2" })%>
        <%=Html.ValidationMessage("EditError") %>
        <ul class="editpanel">
            <li class="edititem">
                <div class="label">默认产品图片：</div>
                <% if (true == Model.IsDefault) %><% { %>是<% } %>
                <% else %>
                <% { %>
                <label>
                <%=Html.RadioButtonFor(p => p.IsDefault, true, new { id="IsDefault_True" })%>是
                </label>
                <label>
                <%=Html.RadioButtonFor(p => p.IsDefault, false, new { id="IsDefault_False" })%>否
                </label>
                <% } %>
            </li>
            <li class="edititem">
                <label class="label" for="Name_Ch">中文名称：</label>
                <div class="edititemcontent">
                    <%=Html.TextBoxFor(p=>p.Name_Ch) %>
                    <%=Html.ValidationMessageFor(p=>p.Name_Ch) %>
                </div>
            </li>
            <li class="edititem">
                <label class="label" for="Name_En">英文名称：</label>
                <div class="edititemcontent">
                    <%=Html.TextBoxFor(p=>p.Name_En) %>
                    <%=Html.ValidationMessageFor(p=>p.Name_En) %>
                </div>
            </li>
            <li class="edititem btnpanel">
                <input type="submit" value="保存" />
            </li>
        </ul>
    </fieldset>
    <%=Html.HiddenFor(p=>p.TypeID) %>
<% Html.EndForm(); %>
</div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="StypeAndScript" runat="server">
</asp:Content>